<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title>文件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script language="JavaScript">
function checkfm(form){
	var imagefile = form.imagefile.value;
	if(imagefile!=""){
		var types = ["jpg","gif","bmp","png","exe","doc","pdf","txt","xls","ppt","swf"];
		var ext = imagefile.substring(imagefile.lastIndexOf(".")+1).toLowerCase();
		for(var i=0; i<types.length;i++){
			if (ext==types[i]){
				retutn true; 
			}
		}
		alert("只允许上传图片/flash动画/word文件/exe文件/pdf文件/txt文件/xls文件/ppt文件");
		return false;	
	}
	return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<s:form action="file_upload.html" method="post" enctype="multipart/form-data" onsubmit="return checkfm(this)">
  <table width="60%" height="35" border="0" align="center"
  	style="margin-top: 10px;margin-bottom: 3px;">
  	<tr style="background-color: #9CDCF9;"><td class="STYLE1">
  		&nbsp;&nbsp;&nbsp;&nbsp;上传文件</td>
  	</tr>
  	</table>
  <table width="60%" border="0" align="center">
	<tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">文件：</div></td>
      <td width="75%"> <input type="file" name="imagefile" size="50"><br/>
      只允许上传图片/flash动画/word文件/exe文件/pdf文件/txt文件/xls文件/ppt文件
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td></td>
      <td> 
        <div align="left"> <br/>
          <input type="submit" value=" 确 定 " class="frm_btn">
        </div></td>
    </tr>
  </table>
</s:form>
<br>
</body>
</html>